#  $Xorg: zh,v 1.3 2000/08/17 19:47:00 cpqbld Exp $
#  XLocale Database Sample for zh (eucCN).
#
#  $XFree86: xc/nls/XLC_LOCALE/zh_CN,v 1.1 2001/11/01 23:35:28 dawes Exp $

#
# 	XLC_FONTSET category
#
XLC_FONTSET
# 	fs0 class (7 bit ASCII)
fs0	{
	charset	{
		name	ISO8859-1:GL
	}
	font	{
		primary		ISO8859-1:GL
		vertical_rotate	all
	}
}
# 	fs1 class
fs1	{
	charset	{
		name	GB2312.1980-0:GL
	}
	font	{
		primary	GB2312.1980-0:GL
		substitute	GB2312.1980-0:GLGR
	}
}
# 	fs2 class
fs2	{
	charset	{
		name	IBM-sbdCN:GL
	}
	font	{
		primary	IBM-sbdCN:GL
	}
}
# 	fs3 class
fs3	{
	charset	{
		name	IBM-udcCN:GL
	}
	font	{
		primary	IBM-udcCN:GL
	}
}
END XLC_FONTSET

#
#       XLC_CHARSET_DEFINE category
#
XLC_CHARSET_DEFINE
csd0    {
        charset_name    IBM-sbdCN
        side            GLGR
        length          2
        string_encoding False
        sequence        \x1b%/2
}
csd1    {
        charset_name    IBM-udcCN
        side            GLGR
        length          2
        string_encoding False
        sequence        \x1b%/2
}
END XLC_CHARSET_DEFINE
#
# 	XLC_XLOCALE category
#
XLC_XLOCALE

encoding_name		zh.eucCN
mb_cur_max		2
state_depend_encoding	False
wc_encoding_mask	\x30000000
wc_shift_bits		7


use_stdc_env		True
force_convert_to_mb	True


# 	cs0 class
cs0	{
	side		GL:Default
	length		1
	wc_encoding	\x00000000
	ct_encoding	ISO8859-1:GL
}

# 	cs1 class
cs1	{
	side		GR
	length		2
	byte1		\xa1,\xf7
	byte2		\xa1,\xfe
	wc_encoding	\x30000000
	ct_encoding	GB2312.1980-0:GL; GB2312.1980-0:GR

	ct_extended_segment	IBM-udcCN:GL;\x2221,\x2230;\x2263,\x2264;\x226f,\x2270;\x227d,\x227e;\x2474,\x247e;\x2577,\x257e;\x2639,\x2640;\x2659,\x267e;\x2742,\x2750;\x2772,\x277e;\x283b,\x2844;\x286a,\x2923;\x2970,\x2f7e;\x577a,\x577e;\x7821,\x7e5f
}

# 	cs2 class
cs2	{
	side		none
	length		2
	byte1		\xfe,\xfe
	byte2		\xe0,\xfe
	wc_encoding	\x10000000
	ct_encoding	IBM-sbdCN:GL; IBM-sbdCN:GR

	mb_conversion	[\xfee0,\xfefe]->\x7e60

}

# 	cs3 class
cs3	{
	side		none
	length		2
	byte1		\xf8,\xfe
	byte2		\xa1,\xfe
	wc_encoding	\x20000000
	ct_encoding	IBM-udcCN:GL; IBM-udcCN:GR

	mb_conversion	[\xa2a1,\xa2b0]->\x2221,[\xa2e3,\xa2e4]->\x2263,[\xa2ef,\xa2f0]->\x226f,[\xa2fd,\xa2fe]->\x227d,[\xa4f4,\xa4fe]->\x2474,[\xa5f7,\xa5fe]->\x2577,[\xa6b9,\xa6c0]->\x2639,[\xa6d9,\xa6fe]->\x2659,[\xa7c2,\xa7d0]->\x2742,[\xa7f2,\xa7fe]->\x2772,[\xa8bb,\xa8c4]->\x283b,[\xa8ea,\xa8fe]->\x286a,[\xa9a1,\xa9a3]->\x2921,[\xa9f0,\xa9fe]->\x2970,[\xaaa1,\xaafe]->\x2a21,[\xaba1,\xabfe]->\x2b21,[\xaca1,\xacfe]->\x2c21,[\xada1,\xadfe]->\x2d21,[\xaea1,\xaefe]->\x2e21,[\xafa1,\xaffe]->\x2f21,[\xd7fa,\xd7fe]->\x577a,[\xf8a1,\xf8fe]->\x7821,[\xf9a1,\xf9fe]->\x7921,[\xfaa1,\xfafe]->\x7a21,[\xfba1,\xfbfe]->\x7b21,[\xfca1,\xfcfe]->\x7c21,[\xfda1,\xfdfe]->\x7d21,[\xfea1,\xfefe]->\x7e21,
}

END XLC_XLOCALE
